package com.hunt.dao;

import com.hunt.model.dto.UserLevel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author shanchao
 * @create 2019/11/4-18:52
 */
public interface UserLevelMapper {
    //新增
    public int insert(UserLevel userLevel);

    //更新
    public int update(UserLevel userLevel);

    //通过userlevel进行删除操作
    public int deleteByUserlevel(@Param("userlevel") String userlevel);

    //通过对象进行查询
    public UserLevel select(UserLevel userLevel);

    //通过userlevel进行查询
    public UserLevel selectByUserLevel(@Param("userlevel") String userlevel);

    //查询全部
    public List<UserLevel> selectAll();

    //查询数量
    public int selectCounts();

    List<UserLevel> selectByPage(Map<String, Object> map);


    /**
     *
     * //新增
     *     public Long insert(SysUserPermission SysUserPermission);
     *
     *     //更新
     *     public void update(SysUserPermission SysUserPermission);
     *
     *     //通过对象进行查询
     *     public SysUserPermission select(SysUserPermission SysUserPermission);
     *
     *     //通过id进行查询
     *     public SysUserPermission selectById(@Param("id") Long id);
     *
     *     //查询全部
     *     public List<SysUserPermission> selectAll();
     *
     *     //查询数量
     *     public int selectCounts();
     *
     *     void deleteByUserId(@Param("userId") long userId);
     *
     *     List<SysUserPermission> selectByUserId(Long userId);
     */
}
